package cn.gemiman.daoyi.module.mp.framework.web.config;

import cn.gemiman.daoyi.framework.swagger.config.DaoyiSwaggerAutoConfiguration;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * mp 模块的 web 组件的 Configuration
 *
 * @author 道一源码
 */
@Configuration(proxyBeanMethods = false)
public class MpWebConfiguration {

    /**
     * mp 模块的 API 分组
     */
    @Bean
    public GroupedOpenApi adminMpGroupedOpenApi() {
        return DaoyiSwaggerAutoConfiguration.buildGroupedOpenApi("admin", "管理后台-微信能力中心", "mp");
    }

    @Bean
    public GroupedOpenApi appMpGroupedOpenApi() {
        return DaoyiSwaggerAutoConfiguration.buildGroupedOpenApi("app", "用户 APP-微信能力中心", "mp");
    }

}
